package com.cheng.project_model1;

import com.cheng.project_model1.config.properties.CorsProperties;
import com.cheng.project_model1.config.properties.EnvProperties;
import com.cheng.project_model1.config.properties.JwtProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Repository;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableEurekaClient
@MapperScan(basePackages = "com.cheng.project_model1.mapper", annotationClass = Repository.class)
@EnableConfigurationProperties({EnvProperties.class, CorsProperties.class, JwtProperties.class})
@EnableScheduling
@EnableFeignClients
public class ProjectModel1Application {
    public static void main(String[] args) {
        SpringApplication.run(ProjectModel1Application.class, args);
    }
}
